<%@ include file="/common/taglibs.jsp"%>
<%@ page language="java" pageEncoding="UTF-8"
	contentType="text/html;charset=utf-8"%>

<head>

	<title><fmt:message key="authoriyProfile.title" />
	</title>
	<script type="text/javascript"
		src="<c:url value='/ext/scripts/index/index.js'/>">
</script>
	<script type="text/javascript">
function getListByProperties(strvalue) {
	return strvalue.split(',');
}
jQuery(document).ready(
		function() {
			var authoriyvalue = "<fmt:message key='authoriy.type'/>";
			var authoriylist = getListByProperties(authoriyvalue);
			for ( var i = 0; i < authoriylist.length; i++) {
				jQuery('#authoriytypeid').append(
						"<option value='" + (i + 1) + "'>" + authoriylist[i]
								+ "</option>");
			}
		});

function checkattachmentinfo() {

	var finameerror = "<fmt:message key='authoriy.filename.null' />";
	var fileerror = "<fmt:message key='authoriy.file.null' />";
	var filename = document.getElementById("filenameid");
	var finameerrordiv = document.getElementById("finameerror");
	var fileinfo = document.getElementById("fileid");
	var fileiderror = document.getElementById("fileiderror");
	if (filename.value == null || filename.value == "") {
		finameerrordiv.innerHTML = finameerror;
		filename.focus();
		return false;
	} else {
		finameerrordiv.innerHTML = "*";
	}

	if (fileinfo.value == null || fileinfo.value == "") {
		fileiderror.innerHTML = fileerror;
		fileinfo.focus();
		return false;
	} else {
		fileiderror.innerHTML = "*";
	}
	return true;
}
</script>
</head>

<div class="box_big">
	<div class="bj_biao">
		<h4>
			<fmt:message key="authoriy.info" />
		</h4>
	</div>
	<div class="box5" id="selectcondiv">
		<table border="0" cellspacing="0" cellpadding="0" class="table_bj">
			<tr>
				<th>
					<fmt:message key="authoriy.name" />
					:
				</th>
				<td>
					${attachment.fileName}
				</td>
			</tr>
			<tr>
				<th>
					<fmt:message key="authoriy.filetype" />
					:
				</th>
				<td>
					<c:if test="${attachment.fileType==1}">
						<fmt:message key="authoriy.type.file" />
					</c:if>
					<c:if test="${attachment.fileType==2}">
						<fmt:message key="authoriy.type.soft" />
					</c:if>
				</td>
			</tr>
			<tr>
				<th>
					<fmt:message key="authoriy.size" />
					:
				</th>
				<td>
					${attachment.fileSize} MB
				</td>
			</tr>
			<tr>
				<th>
					<fmt:message key="authoriy.description" />
					:
				</th>
				<td>
					${attachment.note}
				</td>
			</tr>
		</table>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr height="50" valign="top">
				<td align="center">
					<input type="button" onclick="javascript:history.go(-1);"
						value="<fmt:message key="content.add.back"/>" class="btn_blue2" />
				</td>
			</tr>
		</table>
	</div>
</div>